/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package skat.player;

import java.util.ArrayList;

/**
 *
 * @author weinpau
 */
public class PlayerGroupList extends ArrayList<PlayerGroup> {

    public PlayerGroup getGroupOf(Player p) {
        for (PlayerGroup g : this) {
            if (g.contains(p)) {
                return g;
            }
        }
        return null;
    }
}
